import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

// {
//   path: '/',
//   component: Layout,
//   redirect: '/dashboard',
//   children: [{
//     path: 'dashboard',
//     name: 'Dashboard',
//     component: () => import('@/views/dashboard/index.vue'),
//     meta: { title: 'Dashboard', icon: 'dashboard' }
//   }]
// }
const routes = [
  {
    path: "/:id?",

    name: "Page1",
    component: () => import("../views/pushActive/page1.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
